package com.xinghou.platform.dao.mange.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.xinghou.platform.dao.mange.MessageDAO;
import com.xinghou.platform.dao.mange.service.MessageDAOService;
import com.xinghou.platform.model.main.Message;
/**
 * 
 * @author wlw
 *
 */
@Service
public class MessageDAOServiceImpl  implements MessageDAOService{
	@Resource
	private MessageDAO messageDAO;

	public List<Message> getMsg(Short status) throws DataAccessException {
		
		return messageDAO.getMsg(status);
	}

	public int saveMsg(Message message) throws DataAccessException {
		// TODO Auto-generated method stub
		return messageDAO.saveMsg(message);
	}

	public int updateMessage(Message message) throws DataAccessException {
		// TODO Auto-generated method stub
		return messageDAO.updateMessage(message);
	}


	
	public int updateMessageBymsgid(Integer msgId) throws DataAccessException {
		// TODO Auto-generated method stub
		return messageDAO.updateMessageBymsgid(msgId);
	}


	@Override
	public List<Message> getMsgss(int trueid, int fakeid, Short status)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return messageDAO.getMsgss(trueid, fakeid, status);
	}

	@Override
	public List<Message> getMsggsslist(Integer msgId)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return messageDAO.getMsggsslist(msgId);
	}

	@Override
	public List<Message> getMsgss(int trueid, int fakeid)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return messageDAO.getMsgss(trueid, fakeid);
	}

}
